﻿using App16.Common;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Text;
using Windows.UI.Xaml;

namespace App16.ViewModels
{
    class MainPageViewModel : Common.BindableBase
    {
        public MainPageViewModel()
        {
            App.Adal.AfterLogin += (s, e) => { this.ContentVisibility = (App.Adal.IsLoggedIn) ? Visibility.Visible : Visibility.Collapsed; };
            App.Adal.AfterLogout += (s, e) => { this.ContentVisibility = Visibility.Collapsed; };
        }

        Visibility _ContentVisibility = Visibility.Collapsed;
        public Visibility ContentVisibility { get { return _ContentVisibility; } set { base.SetProperty(ref _ContentVisibility, value); } }
    }
}
